package com.heima.service.impl;

import com.heima.mapper.BusinessMapper;
import com.heima.pojo.Business;
import com.heima.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BusinessServiceImpl implements BusinessService {

    @Autowired
    private BusinessMapper businessMapper;
    @Override
    public List<Business> listQuery() {
        return businessMapper.selectList(null);
    }

    @Override
    public String queryBusinessName(Integer businessId) {
        return businessMapper.queryBusinessName(businessId);
    }
}
